﻿@model blacksoft.Models.OrdenCompra

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}


<div class="block big">
    <div class="block_cont">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form-horizontal">
                <h4>OrdenCompra - Editar</h4>
                <hr />
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.IDOrdenCompra)

                <div class="form-group">
                    @Html.LabelFor(model => model.Fecha, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(model => model.Fecha, new { disabled = "disabled" })
                    </div>
                </div>


                <div class="form-group">
                    @Html.LabelFor(model => model.Subtotal, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Subtotal)
                        @Html.ValidationMessageFor(model => model.Subtotal)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.IGV, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.IGV)
                        @Html.ValidationMessageFor(model => model.IGV)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Total, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Total)
                        @Html.ValidationMessageFor(model => model.Total)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Estado, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Estado)
                        @Html.ValidationMessageFor(model => model.Estado)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.IDPersona_Proveedor, "IDPersona_Proveedor", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.DropDownList("IDPersona_Proveedor", String.Empty)
                        @Html.ValidationMessageFor(model => model.IDPersona_Proveedor)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.IDTerminal, "IDTerminal", new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.DropDownList("IDTerminal", String.Empty)
                        @Html.ValidationMessageFor(model => model.IDTerminal)
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="Save" class="btn btn-default" />
                    </div>
                </div>
                </div>
        }
    </div>
</div>
<div>
    @Html.ActionLink("Regresar", "Index")
</div>
